import * as actionTypes from './actionTypes';
import { fromJS } from 'immutable';
const defaultState = fromJS({
  featureList: [],
  globalList: []
});

export default (state = defaultState, action) => {
  switch(action.type) {
    case actionTypes.GET_RANKS:
      return state.set('featureList', fromJS(action.featureList)).set('globalList', fromJS(action.globalList))
    default:
      return state
  }
}